package com.vizhuo.client.business.match.goods.vo;

import java.io.Serializable;

import com.vizhuo.client.base.AbstractVo;

/**
 * 
 * @ClassName: DriverVo
 * @Description: 我要找车
 * @author TANDP
 * @date 2015-7-9 下午1:56:12
 * 
 */
public class DriverVo extends AbstractVo implements Serializable {

    /**
     * 抢单记录id
     */
    private Integer orderRobId;

    /**
     * 发货人id
     */
    private Integer goodsAccountId;

    /**
     * 货源id/要车信息id
     */
    private Long goodsId;

    /**
     * 货源编号
     */
    private String goodsNo;

    /**
     * 司机账号id
     */
    private Integer driverAccountId;

    /**
     * 司机账号类型,1:司机
     */
    private String driverAccountType = "1";

    /**
     * 司机姓名
     */
    private String driverName;

    /**
     * 联系电话
     */
    private String phone;

    /**
     * 车牌号
     */
    private String carNo;

    /**
     * 司机等级
     */
    private String driverLevel;

    /**
     * 身份证认证,1:通过,0:不通过
     */
    private String idcarCheck;

    /**
     * 车辆类型
     */
    private String carType;

    /**
     * 车辆类型
     */
    private String carTypeName;

    /**
     * 车长
     */
    private String carLength;

    /**
     * 车长
     */
    private String carLengthName;

    /**
     * 车位置-经度
     */
    private String carLng;

    /**
     * 车位置-纬度
     */
    private String carLat;

    /**
     * 车当前位置-经度
     */
    private String lng;

    /**
     * 车当前位置-纬度
     */
    private String lat;

    /**
     * 车位置
     */
    private String carAddress;

    /**
     * 距离(米),客户端调用distanceLabel
     */
    private int distance;

    /**
     * 已成交笔数
     */
    private Integer successCount;

    /**
     * 好评率
     */
    private String highPraiseRate;

    /**
     * 头像照片路径
     */
    private String headPicPath;

    /**
     * 头像照片名称
     */
    private String headPicName;

    /**
     * 经验值
     */
    private int accountExp;

    /**
     * 是否已加入车库,1:是,0:否
     */
    private String isCollect;

    private String createDatetime;

    /**
     * 车类型,显示文本调用getCarType
     * 
     * @return
     */
    public String getCarType() {
        return carType;
    }

    /**
     * 车类型
     * 
     * @param carType
     */
    public void setCarType(String carType) {
        this.carType = carType;
    }

    /**
     * 车长
     * 
     * @return
     */
    public String getCarLength() {
        return carLength == null ? "0" : carLength;
    }

    /**
     * 车长
     * 
     * @param carLength
     */
    public void setCarLength(String carLength) {
        this.carLength = carLength;
    }

    /**
     * 车位置-经度
     * 
     * @return
     */
    public String getCarLng() {
        return carLng;
    }

    /**
     * 车位置-经度
     * 
     * @param carLng
     */
    public void setCarLng(String carLng) {
        this.carLng = carLng;
    }

    /**
     * 车位置-纬度
     * 
     * @return
     */
    public String getCarLat() {
        return carLat;
    }

    /**
     * 车位置-纬度
     * 
     * @param carLat
     */
    public void setCarLat(String carLat) {
        this.carLat = carLat;
    }

    /**
     * 车位置
     * 
     * @return
     */
    public String getCarAddress() {
        return carAddress == null ? "未知" : carAddress;
    }

    /**
     * 车位置
     * 
     * @param carAddress
     */
    public void setCarAddress(String carAddress) {
        this.carAddress = carAddress;
    }

    /**
     * 距离(米)
     * 
     * @return
     */
    public int getDistance() {
        return distance;
    }

    /**
     * 全程距离 客户端可以取这个,超过1000米,返回公里,小于1000米返回米
     * 
     * @return
     */
    public String getDistanceLabel() {
        if (distance > 1000) {
            return (distance / 1000) + "公里";
        } else {
            return distance + "米";
        }
    }

    /**
     * 距离(米)
     * 
     * @param distance
     */
    public void setDistance(int distance) {
        this.distance = distance;
    }

    /**
     * 已成交笔数
     * 
     * @return
     */
    public Integer getSuccessCount() {
        return successCount;
    }

    /**
     * 已成交笔数
     * 
     * @param successCount
     */
    public void setSuccessCount(Integer successCount) {
        this.successCount = successCount;
    }

    /**
     * 司机等级
     * 
     * @return
     */
    public String getDriverLevel() {
        return driverLevel;
    }

    /**
     * 司机等级
     * 
     * @param driverLevel
     */
    public void setDriverLevel(String driverLevel) {
        this.driverLevel = driverLevel;
    }

    /**
     * 身份证是否认证,1:是,0:否
     * 
     * @return
     */
    public String getIdcarCheck() {
        return idcarCheck;
    }

    /**
     * 身份证是否认证,1:是,0:否
     * 
     * @param idcarCheck
     */
    public void setIdcarCheck(String idcarCheck) {
        this.idcarCheck = idcarCheck;
    }

    /**
     * 司机账号id
     * 
     * @return
     */
    public Integer getDriverAccountId() {
        return driverAccountId;
    }

    /**
     * 司机账号id
     * 
     * @param driverAccountId
     */
    public void setDriverAccountId(Integer driverAccountId) {
        this.driverAccountId = driverAccountId;
    }

    /**
     * 司机姓名
     * 
     * @return
     */
    public String getDriverName() {
        return driverName;
    }

    /**
     * 司机姓名
     * 
     * @param driverName
     */
    public void setDriverName(String driverName) {
        this.driverName = driverName;
    }

    /**
     * 车牌号
     * 
     * @return
     */
    public String getCarNo() {
        return carNo;
    }

    /**
     * 车牌号
     * 
     * @param carNo
     */
    public void setCarNo(String carNo) {
        this.carNo = carNo;
    }

    /**
     * 货源id/要车信息id
     * 
     * @return
     */
    public Long getGoodsId() {
        return goodsId;
    }

    /**
     * 货源id/要车信息id
     * 
     * @param goodsId
     */
    public void setGoodsId(Long goodsId) {
        this.goodsId = goodsId;
    }

    public String getLng() {
        return lng;
    }

    public void setLng(String lng) {
        this.lng = lng;
    }

    public String getLat() {
        return lat;
    }

    public void setLat(String lat) {
        this.lat = lat;
    }

    /**
     * 联系电话
     * 
     * @return
     */
    public String getPhone() {
        return phone;
    }

    /**
     * 联系电话
     * 
     * @param phone
     */
    public void setPhone(String phone) {
        this.phone = phone;
    }

    /**
     * 抢单记录id
     * 
     * @return
     */
    public Integer getOrderRobId() {
        return orderRobId;
    }

    /**
     * 抢单记录id
     * 
     * @param orderRobId
     */
    public void setOrderRobId(Integer orderRobId) {
        this.orderRobId = orderRobId;
    }

    /**
     * 发货人id
     * 
     * @return
     */
    public Integer getGoodsAccountId() {
        return goodsAccountId;
    }

    /**
     * 发货人id
     * 
     * @param goodsAccountId
     */
    public void setGoodsAccountId(Integer goodsAccountId) {
        this.goodsAccountId = goodsAccountId;
    }

    public String getGoodsNo() {
        return goodsNo;
    }

    public void setGoodsNo(String goodsNo) {
        this.goodsNo = goodsNo;
    }

    /**
     * 好评率,返回格式:80%
     * 
     * @return
     */
    public String getHighPraiseRate() {
        return highPraiseRate;
    }

    /**
     * 好评率
     * 
     * @param highPraiseRate
     */
    public void setHighPraiseRate(String highPraiseRate) {
        this.highPraiseRate = highPraiseRate;
    }

    public String getHeadPicPath() {
        return headPicPath;
    }

    public void setHeadPicPath(String headPicPath) {
        this.headPicPath = headPicPath;
    }

    public String getHeadPicName() {
        return headPicName;
    }

    public void setHeadPicName(String headPicName) {
        this.headPicName = headPicName;
    }

    public int getAccountExp() {
        return accountExp;
    }

    public void setAccountExp(int accountExp) {
        this.accountExp = accountExp;
    }

    public String getCarTypeName() {
        return carTypeName;
    }

    public void setCarTypeName(String carTypeName) {
        this.carTypeName = carTypeName;
    }

    public String getCarLengthName() {
        String carLength2 = this.getCarLength();
        String string = (carLength2 == null || "null".equals(carLength2) ? "0" : carLength2) + "米";
        return string;
    }

    public void setCarLengthName(String carLengthName) {
        this.carLengthName = carLengthName;
    }

    public String getIsCollect() {
        return isCollect;
    }

    public void setIsCollect(String isCollect) {
        this.isCollect = isCollect;
    }

    public String getDriverAccountType() {
        return driverAccountType;
    }

    public void setDriverAccountType(String driverAccountType) {
        this.driverAccountType = driverAccountType;
    }

    public String getCreateDatetime() {
        return createDatetime;
    }

    public void setCreateDatetime(String createDatetime) {
        this.createDatetime = createDatetime;
    }

}
